<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var x=[123,67,361,881,101,23];
			var b=x.every(x=>x%2==1);
			console.log("全部是奇数》"+b);
			var b2=x.every(y=>{
				return y>10&&y<1000;
			})
			var b3=x.every(function(a){
				return a%2==0;
			})
			console.log(b2);
			console.log(b3);
			
			var d=x.filter(x=>x<100);
			console.log("小于100的有：",d.join());
			
			var f=x.find(x=>x>800);
			alert(f);
			//x.forEach((o,i)=>x[i]+=5);
			//console.log(x.join("#"));
			x.forEach((o,i)=>{
				console.log(i+":"+o);
			});
			var f3=x.includes(67);
			console.log(f3);
		</script>
	</head>
	<body>
	</body>
</html>